import { PAGE_TYPE } from '@/common/const'

export default {
  getCurrentPage: (state) => {
    return state.popId > 0 ? state.pops_[state.popId-1] : state.pages[state.pageIndex]
  },
  isSwiper: (state) => {
    if(state.attrs.pageType == PAGE_TYPE.long || state.attrs.isNoSwiping){
      return false
    }else{
      return true
    }
  }
}
